/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef GEN_NETWORK_ADAPTER_INTERFACE_H
#define GEN_NETWORK_ADAPTER_INTERFACE_H

#include <device_tree/base.h>

namespace dev::gen {

class MC_API NetworkAdapter : public mc::engine::interface<NetworkAdapter> {
public:
    MC_INTERFACE("bmc.dev.NetworkAdapter")

    property<std::string> Manufacturer;     ///< 网卡生产厂商
    property<std::string> ChipModel;        ///< 网卡芯片号
    property<std::string> Description;      ///< 网卡描述信息
    property<std::string> ChipVendor;       ///< 网卡芯片生产厂商
    property<uint8_t>     NetworkPortCount; ///< 网卡下的网口数量
    property<bool>        SupportedMctp;    ///< 网卡芯片是否支持mctp协议
    property<bool>        SupportedLldp;    ///< 网卡芯片是否支持通过mctp接收lldp报文
    property<std::string> FirmwareVersion;  ///< 网卡固件版本
    property<uint8_t>     Type;             ///< 网卡类型
    property<std::string> RefChip;          ///< 网卡芯片引用对象
    property<uint8_t>     OSPowerState;     ///< 网卡上下电状态
};
} // namespace dev::gen

#endif // GEN_NETWORK_ADAPTER_INTERFACE_H
